package cn.singleton;

/**
 * @auth wzy
 * @date 2023/11/4 9:30
 */
public class BeiFactoryTest {

    public static void main(String[] args) {

//        BeiFactory beiFactory1 = BeiFactory.getInstance();
//        BeiFactory beiFactory2 = BeiFactory.getInstance();
//        BeiFactory beiFactory3 = BeiFactory.getInstance();

        BeiRunnable runnable = new BeiRunnable();

        for (int i = 0; i <100;i++) {
            new Thread(runnable).start();
        }

    }
}
